#include<bits/stdc++.h>
using namespace std;
#define int long long
signed main() {
	double h, w;
	cin >> w >> h;
	double ans = w / h / h;
	cout << fixed << setprecision(1) << ans << endl;
	cout << (ans > 25 ? "PANG" : "Hai Xing");
	return 0;
}
